package com.guanzhi.di;

/**
 * Spring6
 * <p> Package: com.guanzhi.di </p>
 * <p> File: Book.java </p>
 * <p> Description:  (Spring6 实现属性注入)</p>
 * <p> Date: 2024/8/14 23:11</p>
 *
 * @author LiKai
 * @version 1.0 （代码版本）
 * @email <a href="mailto:Likai55634@aliyun.com">LiKai</a>（邮箱）
 * @date 2024/8/14 23:11
 * @since jdk1.8（jdk版本）
 */
public class Book {

    /**
     * 书名
     */
    private String name;

    /**
     * 作者
     */
    private String author;

    public Book() {
    }

    public Book(String author, String name) {
        this.author = author;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
